package kyFtp.response
{
	/**
	 * @author 秦家洋
	 * @E-mail: develop@kongyue.cc
	 * 创建时间：2015-7-2 下午5:43:26
	 * 
	 */
	public class Response
	{
		public var code:int;
		public var message:String;
		public var isMultiline:Boolean;
		public function Response()
		{
		}
		public static function parse(responseStr:String):Response
		{
			var r:Response = new Response();
			r.code = parseInt(responseStr.substr(0,3));
			r.message = responseStr.substr(4).replace(/[\r\n]+$/gm, "");
			r.isMultiline = (responseStr.charAt(3)=="-");
			return r;
		}
	}
}